const { Sequelize, DataTypes } = require('sequelize'); 

const sequelize = new Sequelize('traveldb_demo', 'root', 'root', {
  host: 'localhost',
  dialect: 'mysql',
  port: 3306
});

const initUserModel = require('./models/user');
const initJindianModel = require('./models/jindian');


const User = initUserModel(sequelize, DataTypes);
const Jindian = initJindianModel(sequelize, DataTypes);


module.exports = {
  sequelize,
  DataTypes,
  User,
  Jindian,
};
